/*
 *	(*^。^*) TFrameWork License (*^。^*)
 */

/*
 *  Title :
 *
 *  Description :
 *
 *
 *  Date :
 *
 *  Author : DengPing
 *
 *  Modify :
 */

using UnityEngine;

namespace TFrameWork.Module.ActionEditor
{
    public class CustomOnSignalTrack : IOnSignalTrack
    {
        public TrackEventBase eventData { get; private set; }
        public TimeLineAction timeLineAction { get; private set; }
        public int currentFrame { get; set; }
        
        public SignalEvent signalEvent => eventData as SignalEvent;
        public void Init(TimeLineAction timeLineAction)
        {
            this.timeLineAction = timeLineAction;
        }
        
        public void OnStart(TrackEventBase data)
        {
            eventData = data;
            Debug.Log("触发信号 " + signalEvent.tag);
        }

        public void OnUpdate(int frameIndex)
        {

        }

        public void OnFinish()
        {

        }

        public void OnBreak(BreakType type)
        {

        }
    }
}